package com.demo.actionbartabnavdemo;


import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class TelephoneFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        int tabId = getArguments().getInt("TAB_ID");
        View rootview = null;
        switch (tabId) {
            case 2:
                rootview = inflater.inflate(R.layout.frag2, container, false);
                break;
            case 3:
                rootview = inflater.inflate(R.layout.frag3, container, false);
                break;
            default:
                rootview = inflater.inflate(R.layout.frag1, container, false);
                break;
        }
        return rootview;
//        return inflater.inflate(R.layout.fragment_telephone, container, false);
    }

}
